﻿@model indicadores.Models.Departamento
@{
    ViewBag.Title = "Novo Departamento";
    Layout = "~/Views/Shared/Layout.cshtml";
}
@section Head{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <link href="@Url.Content("~/Content/Cadastro.css")" rel="stylesheet" type="text/css" />
}
@section SubMenu{
    @RenderPage("~/Views/Departamento/SubMenu.cshtml")
}
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend><h2>Departamento</h2></legend>
        
        <div class="editor-label">
            @Html.LabelFor(model => model.Nome)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nome)
            @Html.ValidationMessageFor(model => model.Nome)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Descricao)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Descricao)
            @Html.ValidationMessageFor(model => model.Descricao)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CR)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CR)
            @Html.ValidationMessageFor(model => model.CR)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NomeResponsavel)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NomeResponsavel)
            @Html.ValidationMessageFor(model => model.NomeResponsavel)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LoginResponsavel)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LoginResponsavel)
            @Html.ValidationMessageFor(model => model.LoginResponsavel)
        </div>     
          
        <div class="editor-label">
            <input type="submit" value="Create" />
        </div>
    </fieldset>
}
<div>
    @Html.ActionLink("Voltar", "Index")
</div>

